package de.gameduell.net.src.communication {
	import flash.events.Event;		

	public class ServerMessageEvent extends Event {

		private var _parameters:Array;

		public function ServerMessageEvent(type:String, aParameters:Array, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			_parameters = aParameters;
		}

		public function get parameters():Array {
			return _parameters;
		}
		
		override public function clone():Event{
			return new ServerMessageEvent(type, _parameters.slice(),bubbles,cancelable);
		}
	}
}
